package cmo.neutech.day10.HomeWork.d6;

public class Arts extends Student{
    double speech;
    double works;
    double midterm;
    double finalExam;
    public Arts(String sno,String name,String sex,int age,double speech,double works,double midterm,double finalExam)
    {
        super(sno,name,sex,age);
        this.speech=speech;
        this.works=works;
        this.midterm=midterm;
        this.finalExam=finalExam;
    }
    public double getOverallScore()
    {
        return speech*0.35+works*0.35+midterm*0.15+finalExam*0.15;
    }
}
